55bbb505d0862f2d35ba9f3bd7011c0b90fbea85,src/main/java/org/esa/beam/atmosphere/operator/GlintCorrectionOperator.java,GlintCorrectionOperator,initialize,#,196

Before Change


        final Rectangle centerColumn = new Rectangle(pixelMid, 0, 1, rasterHeight);

        sunZenMit = new double[rasterHeight];
        final TiePointGrid sunZenGrid = merisProduct.getTiePointGrid(EnvisatConstants.MERIS_SUN_ZENITH_DS_NAME);
        sunZenGrid.getGeophysicalImage().getData(centerColumn).getPixels(pixelMid, 0, 1, rasterHeight, sunZenMit);

        sunAziMit = new double[rasterHeight];
        final TiePointGrid sunAziGrid = merisProduct.getTiePointGrid(EnvisatConstants.MERIS_SUN_AZIMUTH_DS_NAME);
        sunAziGrid.getGeophysicalImage().getData(centerColumn).getPixels(pixelMid, 0, 1, rasterHeight, sunAziMit);

After Change



        pixelMid = MathUtils.ceilInt(merisProduct.getSceneRasterWidth() / 2.0);

        sunZenMit = loadCenterGridColumnData(EnvisatConstants.MERIS_SUN_ZENITH_DS_NAME);
        sunAziMit = loadCenterGridColumnData(EnvisatConstants.MERIS_SUN_AZIMUTH_DS_NAME);
        latMit = loadCenterGridColumnData(EnvisatConstants.MERIS_LAT_DS_NAME);
        lonMit = loadCenterGridColumnData(EnvisatConstants.MERIS_LON_DS_NAME);